package com.zhentao.tot.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * App文章作者信息对象 ap_author
 * 
 * @author ruoyi
 * @date 2025-04-17
 */
public class ApAuthor extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Integer id;

    /** 作者名称 */
    @Excel(name = "作者名称")
    private String name;

    /** 0 爬取数据 1 签约合作商 2平台自媒体人 */
    @Excel(name = "0 爬取数据 1 签约合作商 2平台自媒体人")
    private Integer type;

    /** 社交账号ID */
    @Excel(name = "社交账号ID")
    private Integer userId;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /** 自媒体账号 */
    @Excel(name = "自媒体账号")
    private Integer wmUserId;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }

    public void setUserId(Integer userId) 
    {
        this.userId = userId;
    }

    public Integer getUserId() 
    {
        return userId;
    }

    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }

    public void setWmUserId(Integer wmUserId) 
    {
        this.wmUserId = wmUserId;
    }

    public Integer getWmUserId() 
    {
        return wmUserId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("type", getType())
            .append("userId", getUserId())
            .append("createdTime", getCreatedTime())
            .append("wmUserId", getWmUserId())
            .toString();
    }
}
